<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css" />
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>



        <style type="text/css">
            body {
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }

            @media (max-width: 980px) {
                /* Enable use of floated navbar text */
                .navbar-text.pull-right {
                    float: none;
                    padding-left: 5px;
                    padding-right: 5px;
                }
            }


        </style>
    </head>
    <body>
        <form action="{:U('Cars/edit')}" method="post" class="definewidth m20">
            <input type="hidden" name="car_id" value="{car.$car_id}" />
            <table class="table table-bordered table-hover definewidth m10">
                <tr>
                    <td width="10%" class="tableleft" >车辆ID</td>
                    <td><input type="text" name="car_id" value="{$list.car_id}"/></td>
                </tr>
                <tr>
                    <td width="10%" class="tableleft" >会员ID</td>
                    <td><input type="text" name="vip_id" value="{$list.vip_id}"/></td>
                </tr>
                <tr>
                    <td class="tableleft">车辆品牌</td>
                    <td><input type="text" name="brand" value="{$list.brand}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">型号</td>
                    <td><input type="text" name="type" value="{$list.type}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">颜色</td>
                    <td><input type="text" name="color" value="{$list.color}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">车牌号</td>
                    <td><input type="text" name="car_num" value="{$list.car_num}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">pmi空气指数</td>
                    <td><input type="text" name="pmi" value="{$list.pmi}"/></td>
                </tr>
                <tr>
                    <td class="tableleft">甲醛</td>
                    <td><input type="text" name="jiaquan" value="{$list.jiaquan}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">洗车次数</td>
                    <td><input type="text" name="cleanNum" value="{$list.cleanNum}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">左前方胎压</td>
                    <td><input type="text" name="left_top_pre" value="{$list.left_top_pre}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">右前方胎压</td>
                    <td><input type="text" name="right_top_pre" value="{$list.right_top_pre}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">左后方胎压</td>
                    <td><input type="text" name="left_bottom_pre" value="{$list.left_bottom_pre}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">右后方胎压</td>
                    <td><input type="text" name="right_bottom_pre" value="{$list.right_bottom_pre}"/></td>
                </tr>

                <tr>
                    <td class="tableleft"></td>
                    <td>
                        <button type="submit" class="btn btn-primary" type="button">修改</button>&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
<script>
    $(function() {
        $('#backid').click(function() {
            window.location.href = "{:U('Cars/carlist')}";
        });
        $('input:radio[value={$cars.car_id}]').attr('car_id', 'car_id');
    });



</script>